package com.bestescortbedsystem.entity;

import java.io.Serializable;

/**
 * ses_hospitalinfo_log
 * @author 
 */
public class SesHospitalinfoLog implements Serializable {
    /**
     * ID,主键PK
     */
    private Long logid;

    /**
     * 用户表ID(对应操作者)
     */
    private Long userid;

    /**
     * 操作模块(对应的就是管理什么ps:售后管理,医院管理,床位管理,等)
     */
    private String logmodule;

    /**
     * 操作者IP
     */
    private String logip;

    /**
     * 操作时间
     */
    private String logtime;

    /**
     * 医院表ID(此条记录所对应的医院)
     */
    private Long hospitalinfoid;

    /**
     * 操作内容(具体干了什么)
     */
    private String logcontext;

    private SesUser sesUser;

    public SesUser getSesUser() {
        return sesUser;
    }

    public void setSesUser(SesUser sesUser) {
        this.sesUser = sesUser;
    }

    private static final long serialVersionUID = 1L;

    public Long getLogid() {
        return logid;
    }

    public void setLogid(Long logid) {
        this.logid = logid;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public String getLogmodule() {
        return logmodule;
    }

    public void setLogmodule(String logmodule) {
        this.logmodule = logmodule;
    }

    public String getLogip() {
        return logip;
    }

    public void setLogip(String logip) {
        this.logip = logip;
    }

    public String getLogtime() {
        return logtime;
    }

    public void setLogtime(String logtime) {
        this.logtime = logtime;
    }

    public Long getHospitalinfoid() {
        return hospitalinfoid;
    }

    public void setHospitalinfoid(Long hospitalinfoid) {
        this.hospitalinfoid = hospitalinfoid;
    }

    public String getLogcontext() {
        return logcontext;
    }

    public void setLogcontext(String logcontext) {
        this.logcontext = logcontext;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SesHospitalinfoLog other = (SesHospitalinfoLog) that;
        return (this.getLogid() == null ? other.getLogid() == null : this.getLogid().equals(other.getLogid()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getLogmodule() == null ? other.getLogmodule() == null : this.getLogmodule().equals(other.getLogmodule()))
            && (this.getLogip() == null ? other.getLogip() == null : this.getLogip().equals(other.getLogip()))
            && (this.getLogtime() == null ? other.getLogtime() == null : this.getLogtime().equals(other.getLogtime()))
            && (this.getHospitalinfoid() == null ? other.getHospitalinfoid() == null : this.getHospitalinfoid().equals(other.getHospitalinfoid()))
            && (this.getLogcontext() == null ? other.getLogcontext() == null : this.getLogcontext().equals(other.getLogcontext()))
                && (this.getSesUser() == null ? other.getSesUser() == null : this.getSesUser().equals(other.getSesUser()));

    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLogid() == null) ? 0 : getLogid().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getLogmodule() == null) ? 0 : getLogmodule().hashCode());
        result = prime * result + ((getLogip() == null) ? 0 : getLogip().hashCode());
        result = prime * result + ((getLogtime() == null) ? 0 : getLogtime().hashCode());
        result = prime * result + ((getHospitalinfoid() == null) ? 0 : getHospitalinfoid().hashCode());
        result = prime * result + ((getLogcontext() == null) ? 0 : getLogcontext().hashCode());
        result = prime * result + ((getSesUser() == null) ? 0 : getSesUser().hashCode());

        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", logid=").append(logid);
        sb.append(", userid=").append(userid);
        sb.append(", logmodule=").append(logmodule);
        sb.append(", logip=").append(logip);
        sb.append(", logtime=").append(logtime);
        sb.append(", hospitalinfoid=").append(hospitalinfoid);
        sb.append(", logcontext=").append(logcontext);
        sb.append(", sesUser").append(sesUser);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}